#include <iostream>
using namespace std;

/*if hanshu gaiwei void swap(int x, int y)
  zhishi dui xingcan jinxing fuzhi.hanshu zhishi dui xingcan jinxing caozuo.
  a he b de zhi bing meiyou jiaohuan.
*/
void swap( int &x, int &y)//yingyong chuandi canshu.
{
	int temp;
	temp = x;
	x = y;
	y = temp;
	/*cout << "x = " << x << endl;
	cout << "y = " << y << endl;*/
}

int main()
{
	int a = 2, b = 3;
	swap( a, b);
	cout << "a = " << a << endl;
	cout << "b = " << b << endl;
	return 0;
}
